package cn.edu.hhtc.stsystem.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "T_KC")
public class StockEntity {
	
	@Id
	@Column(name = "RM_ID")
	private Long stPmId;//商品编号
	
	@Column(name = "RM_NAME")
	private String stPmName;//商品名
	
	@Column(name = "RM_UNIT")
	private String stPmUnit;//计量单位
	
	@Column(name = "RM_PRICE")
	private double stPmPrice;//单价
	
	@Column(name = "KC_COUNT")
	private int stCount;//库存量

	public StockEntity() {
		super();
	}

	public StockEntity(Long stPmId, String stPmName, String stPmUnit,
			double stPmPrice, int stCount) {
		super();
		this.stPmId = stPmId;
		this.stPmName = stPmName;
		this.stPmUnit = stPmUnit;
		this.stPmPrice = stPmPrice;
		this.stCount = stCount;
	}

	public Long getStPmId() {
		return stPmId;
	}

	public void setStPmId(Long stPmId) {
		this.stPmId = stPmId;
	}

	public String getStPmName() {
		return stPmName;
	}

	public void setStPmName(String stPmName) {
		this.stPmName = stPmName;
	}

	public String getStPmUnit() {
		return stPmUnit;
	}

	public void setStPmUnit(String stPmUnit) {
		this.stPmUnit = stPmUnit;
	}

	public double getStPmPrice() {
		return stPmPrice;
	}

	public void setStPmPrice(double stPmPrice) {
		this.stPmPrice = stPmPrice;
	}

	public int getStCount() {
		return stCount;
	}

	public void setStCount(int stCount) {
		this.stCount = stCount;
	}
	
	

}
